home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d11
/
v_ega43.arc
/
EGA43.ASM
next >
Wrap
Assembly Source File
|
1989-01-28
|
3KB
|
86 lines
TITLE EGA43
PAGE 66,132
;* * * * * * * * * * * * * * E G A 4 3 * * * * * * * * * * * * * * *
;
; Daniel C.Kline
; (c) 1989
;
;
;
;
CSEG segment para public 'CODE'
org 100h
;
;
EGA43 proc far
assume cs:cseg,ds:cseg,es:nothing
;
jmp set_up
;
;Data Area
;
cpyrt db 'EGA43 - (c) Set Ega 43 Line Mode 8 bit Single Dot Chars$'
cpyrt2 db 0ah,0dh,' Copyright 1989 Daniel C. Kline',0ah,0dh,0ah,0dh,0ah,0dh,'$'
;
;Setup stuff
set_up:
push ds ;Set return segment address and ...
sub ax,ax ;put zero on stack ...
push ax ;so a RET returns us to starting address.
push cs ;Move work address into Data Segment ...
pop ds ;because this is a COM file.
;
;Save registers ;By saving register contents at program
push ax ;entry we insure exit will correctly
push bx ;return to DOS.
push cx
push dx
sti ;enable interrupts
;Set Video mode
mov ah,00
mov al,03
int 10h
;Set screen mode
mov al,12h ;80 x 43 B&W alpha
mov ah,11h
mov bl,0
int 10h
mov ah,11h ;BIOS interrupt 10 - set video mode
mov al,21h
mov bl,3
int 10h ;call BIOS to do it
;Restore cursor
mov ah,1
mov cx,377h
int 10h
;Title
mov dx,offset cpyrt ;get address of program title
call PRINT ;print it on the screen
mov dx,offset cpyrt2 ;get address of copyright
call PRINT ;print it on the screen
;
;
exit:
pop dx ;restore registers so the
pop cx ;exit to DOS works OK.
pop bx
pop ax
int 20h ;Program terminate & return to DOS
;
EGA43 endp
;
;
PRINT proc ;This proc sends the data pointed
;to by register DX to the screen
;for display
;
mov ah,9
int 21h
ret
PRINT endp
;
CSEG ends
end EGA43